package cn.wolfcode.luowowo.hotel.service.impl;

import cn.wolfcode.luowowo.hotel.mapper.HotelThemeMapper;
import cn.wolfcode.luowowo.hotel.domain.HotelTheme;
import cn.wolfcode.luowowo.hotel.service.IHotelThemeService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HotelThemeServiceImpl implements IHotelThemeService {

    @Autowired
    private HotelThemeMapper hotelThemeMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelThemeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelTheme record) {
        return hotelThemeMapper.insert(record);
    }

    @Override
    public HotelTheme selectByPrimaryKey(Long id) {
        return hotelThemeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(HotelTheme record) {
        return hotelThemeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelTheme> query() {
        List<HotelTheme> hotelThemes = hotelThemeMapper.selectForList();
        return hotelThemes;
    }

    @Override
    public List<String> getByIds(Long[] themeIds) {
        return hotelThemeMapper.selectByIds(themeIds);
    }


}
